PKGS := libcurl libxml-2.0
CFLAGS := -std=gnu99 -Wall -Wextra $(shell pkg-config --cflags $(PKGS))
LIBS := $(shell pkg-config --libs $(PKGS))

all: metscrape

metscrape: metscrape.c
	gcc $(CFLAGS) -o $@ $< $(LIBS)

clean:
	-rm -f metscrape *.gif

.PHONY: all clean
